/**
 * 
 */
package com.feib.stms.dao;

import java.util.List;

import com.feib.stms.model.BaseTempPayment;
import com.feib.stms.model.TempUploadFile;
import com.feib.stms.pagination.PaginatedList;

/**
 * @author Jimmy Liu
 *
 */
public interface TempPaymentDao<T extends BaseTempPayment> {
	
	public int insert(T entity);
	
	public int insert(List<T> entities);
	
	public int deleteByTempUploadFilePk(Long pk);
	
	public TempUploadFile getSummary(TempUploadFile tempUploadFile);

	/**
	 * 以暫存檔主鍵值查詢明細
	 * @param pk
	 * @param paginatedList
	 * @return
	 */
	public PaginatedList<T> queryForPaginatedListByTempUploadFilePk(Long pk,
			PaginatedList<T> paginatedList);

	
	
	/**
	 * 以主鍵值查詢驗資明細
	 * @param pk
	 * @param paginatedList
	 * @return
	 */
	public PaginatedList<T> queryChkForPaginatedListByUploadFilePk(Long pk,
			PaginatedList<T> paginatedList);
	
	
}
